/*
* 阔地教育科技有限公司版权所有（codyy.com/codyy.cn）.
* Copyright (c) 2021, Codyy and/or its affiliates. All rights reserved.
* @Date: 2021.01.13 10:15.
* @Author
* @Description 宁夏大屏 - 项目接口封装 - 根据请求类型封装
**/

import request from "@/utils/request"

/**
 *@Description
 *@Return get 方式请求 方法.
 **/
export function getData (params, url) {
  return request({
    url: url,
    method: 'get',
    params
  })
}

/**
 *@Description
 *@Return post 方式请求 方法.
 **/
export function postData (params, url) {
  return request({
    url: url,
    method: 'post',
    data: params
  })
}

/**
 *@Description
 *@Return put 方式请求 方法.
 **/
export function putData(params, url) {
  return request({
    url: url,
    method: 'put',
    data: params
  })
}

/**
 *@Description
 *@Return delete 方式请求 方法.
 **/
export function deleteData(params, url) {
  return request({
    url: url,
    method: 'delete',
    data: params
  })
}

/**
 *@Description
 *@Return patch 方式请求 方法.
 **/
export function patchData(params, url) {
  return request({
    url: url,
    method: 'patch',
    data: params
  })
}
